
<!DOCTYPE html>


<script type="text/javascript">

window.onload = function() {
document.getElementById('fe2').onchange = disablefield;
document.getElementById('fe1').onchange = disablefield;
}

function disablefield()
{
if ( document.getElementById('fe2').checked == true ){
document.getElementById('ssc').value = "";
document.getElementById('ssc').disabled = true}
else if (document.getElementById('fe1').checked == true ){
document.getElementById('ssc').disabled = false;}
}

</script>
<head>


	<title>Formulario Estudiantes</title>

</head>

<body> 

<tr>
	<h2> Formulario Finca: </h2>
<h3> Llene el siguiente formulario con los datos que se le solicitan </h3>

<form action='index.php' method='post' > 

<table>




 
<form>


	<tr>
<td><b>Identificacion Finca: </b></td> 

 <td><input type='text' name='IdFinca'/></td >
<br />
</tr>


<h2>Utilizacion de Fertilizantes</h2> 
<input type="radio" name="ferti" value="1" id="fe1" >SI <td><input type="text" name="ssc" id="ssc" > </td> <br> 

<input type="radio" name="ferti" value="2" id="fe2">NO </td> <br> 


<tr>
<td><b>Descripcion Fertilizante: </b></td>
 <td><input type='text' name='Descrip'/></td >
<br />
</tr>

<form  action="conexion.php" method="post">
<input type="checkbox" name="Ap[]" value="Poste Vivo">Poste Vivo<br/>
<input type="checkbox" name="Ap[]"  value="Poste Muerto">Poste Muerto<br/>
<input type="checkbox" name="Ap[]" value="Electrica">Electrica<br/>


<tr>
<td><b>Cantidad Apartos: </b></td> 

 <td><input type='text' name='CanApar'/></td >
<br />
</tr>



<form  action="conexion.php" method="post">
<input type="checkbox" name="Exp[]" value="Tradicional">Tradicional<br/>
<input type="checkbox" name="Exp[]"  value="Pastoreo">Pastoreo<br/>
<input type="checkbox" name="Exp[]" value="Semi Estabulado">Semi Estabulado<br/>
<input type="checkbox" name="Exp[]" value="Estabulado">Estabulado<br/>

<input type="checkbox" name="Uso[]" value="Forrajes">Forrajes<br/>
<input type="checkbox" name="Uso[]"  value="Bosques">Bosques<br/>
<input type="checkbox" name="Uso[]" value="Agricultura">Agricultura<br/>
<input type="checkbox" name="Uso[]" value="Cultivo Forestal">Cultivo Forestal<br/>
<input type="checkbox" name="Uso[]" value="Infraestructura">Infraestructura<br/>


<tr>
<td><b>Cantidad Hectareas Forrajes : </b></td> 

 <td><input type='text' name='CanHec'/></td >
<br />
</tr>

<tr>
<td><b>Cantidad Hectareas Bosques : </b></td> 

 <td><input type='text' name='CanHec'/></td >
<br />
</tr>



<tr>
<td><b>Cantidad Hectareas Agricultura : </b></td> 

 <td><input type='text' name='CanHec'/></td >
<br />
</tr>



<tr>
<td><b>Cantidad Hectareas Cultivo Forestal : </b></td> 

 <td><input type='text' name='CanHec'/></td >
<br />
</tr>



<tr>
<td><b>Cantidad Hectareas Infraestructura : </b></td> 

 <td><input type='text' name='CanHec'/></td >
<br />
</tr>
</form>
<input type="submit" name="Agregar" value="Guardar">



   </table>





</form>
 </tr>



</html>
